package com.wipz.eoa.iphone.costmanagent;

import java.util.ArrayList;
import java.util.List;

public class CostdetailMenu {
	
	public static List getMenuBytype(String node,String req){
		List list=null;
		String type=req.split(",")[0];
		switch (Integer.parseInt(type)) {
		case 001:
			list=getRegular();
			break;
		case 002:
			list=getTraffic();
			break;
		case 003:
			list=getPurchase();
			break;
		default:
			break;
		}
		return list;
	}
	
	public static List getRegular(){
		List list=new ArrayList();
		CostDetailProperties m=new CostDetailProperties();
		m.setId("001");
		m.setFileName("交通费");
		m.setType("001");
		list.add(m);
		CostDetailProperties m1=new CostDetailProperties();
		m1.setId("002");
		m1.setFileName("交际应酬费");
		m1.setType("002");
		list.add(m1);
		CostDetailProperties m2=new CostDetailProperties();
		m2.setId("003");
		m2.setFileName("其他费用");
		m2.setType("003");
		list.add(m2);
		return list;
	}
	
	public static List getTraffic(){
		List list=new ArrayList();
		CostDetailProperties m=new CostDetailProperties();
		m.setId("001");
		m.setFileName("交通费");
		m.setType("001");
		list.add(m);
		CostDetailProperties m3=new CostDetailProperties();
		m3.setId("004");
		m3.setFileName("住宿费");
		m3.setType("004");
		list.add(m3);
		CostDetailProperties m1=new CostDetailProperties();
		m1.setId("002");
		m1.setFileName("交际应酬费");
		m1.setType("002");
		list.add(m1);
		CostDetailProperties m2=new CostDetailProperties();
		m2.setId("003");
		m2.setFileName("其他费用");
		m2.setType("003");
		list.add(m2);
		return list;
	}
	
	public static List getPurchase(){
		List list=new ArrayList();
		CostDetailProperties m=new CostDetailProperties();
		m.setId("005");
		m.setFileName("采购费");
		m.setType("005");
		list.add(m);
		return list;
	}
}
